package com.zx.erp.repo.service;

import com.github.pagehelper.PageInfo;
import com.zx.erp.repo.bean.KcWarehouse;

import java.util.List;

public interface KcWarehouseBiz {

    PageInfo<KcWarehouse> findAllKc(String cname, String brandNmae,
                                    String typeName, String proName, Integer pageno, Integer pagesize);

    /**
     * 添加库存
     *
     * @param kcWarehouse
     * @return
     */
    Boolean saveKc(KcWarehouse kcWarehouse);

//    Boolean deleteKc();

    /**
     * dxj
     * 多条件查询所有
     *
     * @param cName        仓库名称
     * @param brandName    商品品牌
     * @param typeName     商品类型
     * @param productModel 商品名称
     * @return 筛选后集合
     */
    PageInfo<KcWarehouse> findAllByLike(String cName, String brandName, String typeName, String productModel, Integer pageNum, Integer pageSize);

    public boolean updateKCW(KcWarehouse kcw);

    public List<KcWarehouse> findBy5c(KcWarehouse kcw);

    // 删除库存
    Boolean deleteKc(KcWarehouse kcWarehouse);

    public KcWarehouse findBy(KcWarehouse kcw);

    public boolean updateKCW2(Integer id, Integer num,Integer flag);
}
